import { defineStore } from "pinia";
import { ref } from "vue";
import { getNavList } from "@/apis/Layout";
export const useHeaderStore = defineStore("header", () => {
  const navList = ref([]);
  const getHeaderList = async () => {
    const { data } = await getNavList();
    navList.value = data.result;
  };
  return {
    navList,
    getHeaderList
  }
});
